plugin_c_args = ['-DHAVE_CONFIG_H']

cdata = configuration_data()
cdata.set_quoted('PACKAGE_VERSION', gst_version)
cdata.set_quoted('PACKAGE', 'gst-template-plugin')
cdata.set_quoted('GST_LICENSE', 'LGPL')
cdata.set_quoted('GST_API_VERSION', api_version)
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer template Plug-ins')
cdata.set_quoted('GST_PACKAGE_ORIGIN', 'https://gstreamer.freedesktop.org')
configure_file(output : 'config.h', configuration : cdata)

# gstdsoftbussink
plugin_sources_sink = [
  'src/gstdsoftbussink.c',
  'src/send.c'
  ]



gstdsoftbussink = library('gstdsoftbussink',
  plugin_sources_sink,
  c_args: plugin_c_args,
  dependencies : [gst_dep, gstbase_dep, dsoftbus_dep],
  install : true,
  install_dir : plugins_install_dir,
)

# gstdsoftbussrc
plugin_sources_src = [
  'src/gstdsoftbussrc.c',
  'src/recv.c',
  ]

gstdsoftbussrc = library('gstdsoftbussrc',
  plugin_sources_src,
  c_args: plugin_c_args,
  dependencies : [gst_dep, gstbase_dep, dsoftbus_dep],
  install : true,
  install_dir : plugins_install_dir,
)
